return ret;
}
+static GOptionEntry options[] = {
+ { NULL }
+};
+
gboolean
ot_admin_instutil_builtin_selinux_ensure_labeled (int argc, char **argv, OstreeSysroot *sysroot, GCancellable *cancellable, GError **error)
{
gs_unref_object OstreeSePolicy *sepolicy = NULL;
gs_unref_ptrarray GPtrArray *deployments = NULL;
OstreeDeployment *first_deployment;
+ GOptionContext *context = NULL;
gs_unref_object GFile *deployment_path = NULL;
+ context = g_option_context_new ("[SUBPATH PREFIX] - relabel all or part of a deployment");
+
+ g_option_context_add_main_entries (context, options, NULL);
+
+ if (!g_option_context_parse (context, &argc, &argv, error))
+ goto out;
+
if (!ostree_sysroot_load (sysroot, cancellable, error))
goto out;
ret = TRUE;
out:
+ if (context)
+ g_option_context_free (context);
return ret;
}
#include "otutil.h"
+static GOptionEntry options[] = {
+ { NULL }
+};
+
gboolean
ot_admin_instutil_builtin_set_kargs (int argc, char **argv, OstreeSysroot *sysroot, GCancellable *cancellable, GError **error)
{
guint i;
gs_unref_ptrarray GPtrArray *deployments = NULL;
OstreeDeployment *first_deployment = NULL;
+ GOptionContext *context = NULL;
gs_unref_ptrarray GPtrArray *new_kargs = NULL;
+ context = g_option_context_new ("ARGS - set new kernel command line arguments");
+
+ g_option_context_add_main_entries (context, options, NULL);
+
+ if (!g_option_context_parse (context, &argc, &argv, error))
+ goto out;
+
if (!ostree_sysroot_load (sysroot, cancellable, error))
goto out;
ret = TRUE;
out:
+ if (context)
+ g_option_context_free (context);
return ret;
}